package pers.zxk.jlytnews.dao;

import pers.zxk.jlytnews.entity.FoodType;
import pers.zxk.jlytnews.entity.News;

import java.sql.SQLException;
import java.util.List;

public interface FoodTypeDao {
    public boolean addFoodType(String name,String remarks) throws SQLException, ClassNotFoundException;//添加食物类型
    public boolean delFoodType(int id) throws SQLException, ClassNotFoundException;//通过id删除食物类型
    public boolean updateFoodType(int id,String name,String remarks) throws SQLException, ClassNotFoundException;//更新食物类型
    public FoodType getFoodType(int id) throws SQLException, ClassNotFoundException;//获取食物类型
    public List<FoodType> getAllFoodType() throws SQLException, ClassNotFoundException;//返回全部食物类型
}
